@import '~scss/variables';

.emailInput {
  position: relative;
}

.input {
  // display: flex;
  // align-items: center;
  width: 600px;

  &.error {
    input {
      border-color: $red !important;
      box-shadow: none !important;
    }
  }

  input {
    width: 100%;
    max-width: 100% !important;
  }

  img {
    width: 16px;
    height: 16px;
  }
}

.rightIcon {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;

  img {
    width: 16px;
    height: 16px;
  }

  .button {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 22px;
    height: 22px;
    border-radius: 4px;
    background: #000;
    cursor: pointer;
  }
}

.tooltip {
  display: flex;
  max-width: 150px;

  img {
    margin: 2px 5px 0 0;
  }
}

.prompt {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 37px;
  z-index: 10;
  width: 100%;
  max-height: 300px;
  padding: 8px;
  border-radius: 4px;
  background-color: $white;
  box-shadow: 0 6px 12px 0 rgba(2, 5, 8, 0.04), 0 1px 2px 0 rgba(2, 5, 8, 0.08);
  overflow: auto;
  transition: all $trans-speed;

  &.active {
    display: block;
  }

  .item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
    border-radius: 2px;
    background-color: $white;
    transition: all $trans-speed;
    cursor: pointer;

    &:hover {
      background-color: $lightest;
    }

    .info {
      display: flex;
      align-items: center;

      .avatar {
        width: 32px;
        height: 32px;
        border: 1px solid #fff;
        border-radius: 50%;
        margin: 0 12px;
      }

      .desc {
        strong {
          em {
            font-style: normal;
            color: $green;
          }
        }

        p {
          color: $second-text-color;
        }
      }
    }

    .actions {
      margin: 0 4px;
    }
  }
}
